<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html class=" -webkit-">
	<head>
	<meta charset="utf-8">
    <title>杰利联合</title>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
	<meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
    <meta content="application/xhtml+xml;charset=UTF-8" http-equiv="Content-Type">
    <meta content="no-cache,must-revalidate" http-equiv="Cache-Control">
    <meta content="no-cache" http-equiv="pragma">
    <meta content="0" http-equiv="expires">
    <meta content="telephone=no, address=no" name="format-detection">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
    <link rel="stylesheet" type="text/css" href="${ctxStatic}/jiu/css/mobile_module.css?v=1492657873" media="all">
    <script type="text/javascript" src="${ctxStatic}/jiu/js/jquery-2.0.3.min.js"></script>
	<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
	<script type="text/javascript" src="${ctxStatic}/jiu/js/prefixfree.min.js?v=1492657873"></script>
	<script type="text/javascript" src="${ctxStatic}/jiu/js/dialog.js?v=1492657873"></script>
	<script type="text/javascript" src="${ctxStatic}/jiu/js/flipsnap.min.js?v=1492657873"></script>
    <link href="${ctxStatic}/jiu/css/common.css?v=1492657873" rel="stylesheet" type="text/css">	
    <link rel="stylesheet" href="${ctxStatic}/jiu/css/weui.min.css" />
		<style>
			.hearder{
				height: 50px;
				background-color: #30B0F3;
				width: 100%;
				text-align: center;
				color: white;
				font-size: 20px;
               line-height:50px;
			}
			
			.msgs {
				display: inline-block;
			    color: #fff;
			    font-size: 12px;
			    border: 1px solid #3399ff;
			    /* border-radius: 20px; */
			    text-align: center;
			    height: 38px;
			    line-height: 38px;
			    background: #3399ff;
			    cursor: pointer;
			    width: 30%;
			}
			.msgs1 {
				background: #E6E6E6;
				color: #818080;
				border: 1px solid #CCCCCC;
			}
		</style>
		
	</head>
<body>
	<div id="container" class="container"> 
		<header  class="hearder">
			<a href="javascript:window.history.go(-1)">
				<img src="${ctxStatic}/jiu/img/fanhui.png" style="height: 20px;color: white;top:15px;position: absolute;left: 10px;"/></a>
			反馈意见
		</header>
    <form class="m_15" method="post" id="form" action="${ctxFront }/jiu/doFeedback" onsubmit="return toSubmit();">	
    	<input type="hidden" name="memberId" value="${member.id}"/>
        <input type="hidden" name="name" value="${member.name}"/>
        <input type="hidden" name="memberName" value="${member.nickname}"/>
        <input type="hidden" name="memberOpenId" value="${member.wechatId}"/>
        <input type="hidden" name="memberHeadimgurl" value="${member.headimgurl}"/>
        <table width="100%" cellpadding="5">
            <tbody>
	            <tr>
	                <td height="70px">联系电话<br><input type="text" id="mobile" name="mobile" value=""><span id="mobileerror" style="color: red"></span></td>
	            </tr>
	   			 <tr height="160px">
	                <td>反馈内容<br><textarea id="content" name="content" placeholder="暂不支持表情"></textarea><span id="contenterror" style="color: red"></span></td>
	            </tr>
	            <tr>
	                <td height="100px"><input type="submit" class="btn" value="提&nbsp;&nbsp;交"/></td>
	            </tr>
            
        	</tbody>
        </table>
    </form>
    </div>
    <p class="copyright">杰利联合版权所有</p>

    <script type="text/javascript">
    	var tag=0;
    	function toSubmit(){
    		var phone=$("input[name='mobile']").val();
    		$("#mobileerror").text('');
    		if(phone == ""){
    			$("#mobileerror").text('请正确联系电话');
				return false;
    		}else{
    			if(/^1[3,4,5,7,8,9]\d{9}$/g.test(phone)||(/^15[8,9]\d{8}$/g.test(phone))){
    				var content = $("#content").val();
	        		if(content == ""){
	        			$("#contenterror").text('请正确反馈内容');
	    				return false;
	        		}else{
	        			if(tag==1){
	        				return;
	        			}
	        			tag=1;
	        			return true;
	        		}
				}else{
					$("#mobileerror").text('请正确填写你的手机号码');
					return false;
				}
    		}
    	}
    
			
	</script>
		
		
		
</body></html>